package com.example.textview.util;

import java.util.HashMap;
import java.util.Map;

public class httpteaat {



    public  void  test()
    {
        String host = "https://aliv13.data.moji.com";
        String path = "/whapi/json/alicityweather/briefforecast6days";
        String method = "POST";
        String appcode = "你自己的AppCode";
        Map<String, String> headers = new HashMap<String, String>();
        //最后在header中的格式(中间是英文空格)为Authorization:APPCODE 83359fd73fe94948385f570e3c139105
        headers.put("Authorization", "APPCODE " + appcode);
        //根据API的要求，定义相对应的Content-Type
        headers.put("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");
        Map<String, String> querys = new HashMap<String, String>();
        Map<String, String> bodys = new HashMap<String, String>();
        bodys.put("cityId", "2");
        bodys.put("token", "073854b56a84f8a4956ba3e273f6c9d7");



    }
}
